package com.cy.aircompressor.api;

import com.cy.aircompressor.entity.component.Component;
import com.cy.aircompressor.entity.sensor.Sensor;
import com.drug.lib.view.recycptr.bean.RowEntity;
import com.net.model.bean.BaseResponse;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ComponentApi {
    /**
     * @param pageNum
     * @param pageSize
     * @param compressorId       空压机id
     * @param powerStationId     电站id
     * @param compressorPartCode 空压机部位code
     * @param sn                 编号
     * @return
     */

    @GET("component/queryPage")
    Flowable<BaseResponse<RowEntity<Component>>> queryComponentByPage(@Query("pageNum") Integer pageNum, @Query("pageSize") Integer pageSize,
                                                                   @Query("compressorId") String compressorId, @Query("powerStationId") String powerStationId,
                                                                   @Query("compressorPartCode") String compressorPartCode, @Query("sn") String sn);

}
